/**
 *Classe responsavel pela view do World
 */
import corejuliano.gameelement.perspective.*;
import corejuliano.designpattern.mvc.*;
import util.*; 
 
class corejuliano.gameelement.world.WorldTopDownView extends TopDownView
{
	private var worldCanvas:MovieClip;
	
	public function WorldTopDownView(canvas:MovieClip, model:Model)
	{
		super(canvas,model);
		worldCanvas = canvas.createEmptyMovieClip("worldtopdowncanvas",2);
	}
	
	//nao se usa o create da view  pois o depth tem que ser 1
	// tudo vai ser criado em cima disso
	public function createMovieClip(canvas:MovieClip):Void
	{
		canvas.attachMovie(model.getId(), model.getId(),1);
	}
	
	public function getWorldTopDownCanvas():MovieClip
	{
		return worldCanvas;	
	}
	
	public function destroy():Void
	{
		worldCanvas = null;
		super.destroy();
	}
	
	public function toString(Void):String
	{
		return "corejuliano.gameelement.world.WorldTopDowView";
	}
}